using pixolut.BizBlox;
using System;

public class LunchOrderCollection : DOCollection
{

//START BizBlox Generated Code : Do not remove or alter this comment
//Last Updated : Thursday, 31 January 2008 1:05:24 PM
//BizBlox Version : 1.6.0.0
#region "BizBlox Generated Code"

// ##Start CodeSegment
// $Identifier = +Elements
// $DoNotModify = False

    public LunchOrderCollection() : base(new DOFactory((DataObject)new LunchOrder())) {
    }

    //to typecast your item() property
    public new LunchOrder this[int i]{
        get{
            return (LunchOrder)base[i];
        }
    }


// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = LunchOrderID
// $DoNotModify = False

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = StudentID
// $DoNotModify = False

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = StudentID.ForeignReference
// $DoNotModify = False

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = FoodID
// $DoNotModify = False

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = FoodID.ForeignReference
// $DoNotModify = False

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = dt_OrderDate
// $DoNotModify = False

// ##End CodeSegment

// ##Start CodeSegment
// $Identifier = Quantity
// $DoNotModify = False

// ##End CodeSegment

#endregion

//END BizBlox Generated Code : Do not remove or alter this comment

	// Example finder method
	// *********************
	public void FindByFood( Guid FoodID ) 
	{ 
		SQLBuilder mySql = base.GetSqlBuilder(); 
		mySql.addWhere( LunchOrder.Columns.FoodID, FoodID.ToString() );
        base.SetCurrentQuery(mySql);
		base.Find(); 
	} 

}